package com.dayuanit.tools ;
import com.dayuanit.test.Test;

public class Computer {
	private String type ;
	private String color ;
	private int price ;
	private Test test ;

//======================================
	public void setType (String type ) {
		this.type =type ;
	} 

	public String getType( ){
		return type ;
	}


	public void setColor (String color){
		this.color = color ;
	}

	public String getColor( ){
		return color ;
	}


	public void setPrice (int price) { 
		if (price<0) {
			return ;
		}
		this.price =price ;
	}

	public int getPrice ( ){
		return price ;
	}

	
	public void setTest(Test test ){
		this.test = test ;
	}

	public Test getTest( ){
		return test ;
	}
//======================================
	public void run ( ){
		type = "ThinkPad E440";
		color = "黑色";
		price = 8800 ;
		System.out.println("考试使用价值"+price+"元"+color+type+"笔记本电脑考试。"+"考试做了"+test.getChoose( )+"道选择题,"+test.getJudge( )+"道判断题,"+test.getDrew( )+"道画图题。");

	}
}